segments
Type
keyword
Summary
Used with the number function to count the number of segment chunks in a container.
Syntax
segments
Description
Use the segments keyword together with the number function to refer to one or more words or group of characters in a container.
A segment is delimited by one or more spaces, tabs, or returns, or enclosed by double quotes. A single segment can contain multiple characters and multiple items or words, but not multiple lines.
Segments are delimited by double quotes ("), but not by curved quotes (“ or ”). LiveCode does not treat curved quotes as quotes.
Examples
local tText
put "one two three" into tText
put the number of segments in tText -- returns 3
Related
function: number
glossary: delimit, double quote
keyword: segment, words, items, characters, lines
constant: space, tab, quote, return
Compatibility and Support
Introduced
LiveCode 7.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile